﻿using UnityEngine;
using System.Collections;

namespace Assets.entities { 


    [System.Serializable]
    public class VoxelPrototype {
        public string name;
        public Material material;
        public bool destructable;
        public bool solid;

        [System.NonSerialized]
        public int subMaterialIndex;

        public Voxel instantiateVoxel(VoxelData data) {
            Voxel retval = new Voxel(this, data);
            return retval;
        }
    }

}